//
//  YCGoodsTableViewCell.h
//  lianganyuchu
//
//  Created by iMac on 17/2/23.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface YCGoodsTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIView *backView;

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *labTitle;
@property (weak, nonatomic) IBOutlet UILabel *labPrice;
@property (weak, nonatomic) IBOutlet UILabel *labNum;
@property (weak, nonatomic) IBOutlet UILabel *labStatus;
@property (weak, nonatomic) IBOutlet UIButton *buttonSale;

@property (weak, nonatomic) IBOutlet UIButton *buttonEdit;
- (IBAction)buttonSaleClicked:(id)sender;
- (IBAction)buttonEditClicked:(id)sender;

@property (copy, nonatomic) void (^editBlock)(ItemTable *item);
@property (copy, nonatomic) void (^saleBlock)(ItemTable *item);
@property (copy, nonatomic) void (^unsaleBlock)();
@property (copy, nonatomic) void (^addBlock)(ItemTable *item);

@property NSInteger index;
@property(nonatomic,strong)ItemTable *item;
-(void)bindWith:(ItemTable *)item;

@end
